home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Directorty Opus 5 - Magellan 2
/
Opus 5 - Magellan 2.iso
/
Extras
/
TwinOpus2
/
REXX
/
DOpus
/
EnterDir.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-10-13
|
1KB
|
54 lines
/*
*
* Enter the selected directory in TwinExpres from DOpus.
*
* (c) 1994 by K.P. van Beem (2:280/464.2, patrick.van.beem@aobh.xs4all.nl)
*
* Based on the DOpusLhaARexx package by Geoff Seeley (but you can better
* use GuiArc in stead of DOpus and a script, to deal with archives)
*
*/
DOpusPort = 'DOPUS.1'
if ~show(l,"rexxsupport.library") then
call addlib("rexxsupport.library",0,-30,0)
if showlist('Ports', DOpusPort) = 0 then do
say 'Directory Opus Arexx port not found. Aborting.'
exit
end
address 'DOPUS.1'
options results
/* setup DOpus window and tell user what's happening */
Busy on
TopText "Getting directory of CD, please wait..."
/* Get the next directory */
'Status 6 -1'
GetEntry Result
FilePath = Result
if left(FilePath,1) ~= '*' then do
TopText "You are not in a 'Twin' directory."
Busy off
exit
end
FilePath = SubStr(FilePath,2)
'GetNextSelected -1'
Directory=Result
if SubStr(Directory,26,9) ~= "Directory" then do
TopText "Selected item is no directory."
Busy off
exit
end
if right(FilePath,1) = ':' then
FilePath = FilePath || Strip(left(Directory,25))
else
FilePath = FilePath || '/' || Strip(left(Directory,25))
address AREXX "Rexx:DOpus/ReadDir.rexx" FilePath